import Vue from 'vue';
import VueRouter from 'vue-router';
// import HomePage from '@/view/home/HomePage'

//注册路由组件
Vue.use(VueRouter);
//编写路由规则
const routes = [
    // {
    //     path: '/',
    //     name: 'ConsoleIndex',
    //     component: () => import('@/view/console/system/ConsoleIndex')
    // },
    {
        path: '/UserList',
        name: 'UserList',
        component: () => import('@/view/console/system/UserList')
    },
    {
        path: '/RoleList',
        name: 'RoleList',
        component: () => import('@/view/console/system/RoleList')
    },
    {
        path: '/AuthList',
        name: 'AuthList',
        component: () => import('@/view/console/system/AuthList')
    },
    {
        path: '/OperationList',
        name: 'OperationList',
        component: () => import('@/view/console/system/OperationList')
    },
    {
        path: '/ViewList',
        name: 'ViewList',
        component: () => import('@/view/console/system/ViewList')
    },
    {
        path: '/MenuList',
        name: 'MenuList',
        component: () => import('@/view/console/system/MenuList')
    },
    {
        path: '/OrgList',
        name: 'OrgList',
        component: () => import('@/view/console/system/OrgList')
    }

]
//创建路由
const router = new VueRouter({
    mode:'hash',
    routes
})
//导出
export default router;